package com.example.laboratory.application;

import android.app.Application;

import com.example.laboratory.BuildConfig;
import com.example.laboratory.bean.Items;
import com.example.laboratory.bean.Laboratory;
import com.example.laboratory.utils.LogUtils;
import com.squareup.leakcanary.LeakCanary;

import java.util.ArrayList;
import java.util.List;


/**
 * 玩Android
 * Created by 康栋普 on 2018/1/31.
 */

public class LApp extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
        //初始化内存泄漏检测工具
        if (LeakCanary.isInAnalyzerProcess(this)){
            return;
        }
        LeakCanary.install(this);
        //开启debug模式
        LogUtils.isDebug = BuildConfig.DEBUG;
        //初始化App配置
        AppContext.initialize(this);
    }


    private List<Laboratory.RowsBean> rowsBeans=new ArrayList<>();

    public List<Laboratory.RowsBean> getRowsBeans() {
        return rowsBeans;
    }

    public void setRowsBeans(List<Laboratory.RowsBean> rowsBeans) {
        this.rowsBeans = rowsBeans;
    }


    private List<Items.ItemListBean> itemListBeans =new ArrayList<>();
    public List<Items.ItemListBean> getItemListBeans() {
        return itemListBeans;
    }

    public void setItemListBeans(List<Items.ItemListBean> itemListBeans) {
        this.itemListBeans = itemListBeans;
    }



}
